{php $xinzis = dr_string2array($xinzi);}
{php $zpyqs = dr_string2array($zpyq);}

{php $wendayituoguan = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_wendafufei')->where('cid', $id)->where('leixing', 1)->where('uid', $uid)->get()->getRowArray();}
{php $wendajifenzhifu = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_wendajifen')->where('cid', $id)->where('leixing', 1)->where('uid', $uid)->get()->getRowArray();}
<div class="d-shang-15">
	<div class="d-kuan d-beijingyanse-hong d-yuanjiao-10 ">
		<div class="d-neikuang-10">
			<div class="col-md-6">
				<div class="d-jiacu" style="color: #ef611a;">问答</div>
				<div>
					<span class="d-zitiyanse-hui">问答赏金</span>
					{if $sjlx == 1}
						<span class="d-wenzi-26 d-shang-10" style="color: #ff7171;">
						{if $wdsj > 0}
						{intval($wdsj)}
						{else}
						免费求助
						{/if}
						</span>
						{if $wdsj > 0 }
							<span class="d-zitiyanse-hui d-quxian-0"> {SITE_SCORE} 
								{if $uid == $member.id}
									{if $wendajifenzhifu}
									
									{else}
									<a href="{dr_url(MOD_DIR.'/buywenda/wendajifen', ['fid' => $ci->module['form']['son']['field']['wdsj']['id'],'id'=> $id])}">
										<span class="d-zuo-10 d-wenzi-14 d-shang-10" style="color: #ff7171;"> <i class="fa fa-jpy"></i> 现在去支付</span>
									</a>
									{/if}
								{/if}
							</span> 
						{/if}
					{else}
						<span class="d-wenzi-26 d-shang-10" style="color: #ff7171;">
						{if $wdsj > 0}
						{$wdsj}
						{else}
						免费求助
						{/if}
						</span>
						{if $wdsj > 0 }
							<span class="d-zitiyanse-hui d-quxian-0">元 
								{if $uid == $member.id}
									{if $wendayituoguan}
									
									{else}
									<a href="{dr_url(MOD_DIR.'/buywenda/index', ['fid' => $ci->module['form']['son']['field']['wdsj']['id'],'id'=> $id])}">
										<span class="d-zuo-10 d-wenzi-14 d-shang-10" style="color: #ff7171;"> <i class="fa fa-jpy"></i> 现在去支付</span>
									</a>
									{/if}
								{/if}
							</span> 
						{/if}
					{/if}
					
				</div>
				{if $sjlx == 1}
					{if $uid == $member.id}
						<div class="d-shang-10 d-quxian-0">
							<span class="d-zitiyanse-hui">您的{SITE_SCORE} </span>
							
							<span class="d-zuo-10 d-wenzi-14 d-shang-10" style="color: #ff7171;"> <img class="" src="{HOME_THEME_PATH}web/img/jinbi.svg" height="15" width="15"/> {$member.score}</span>
						</div>
					{/if}
				{else}
					{if $uid == $member.id}
						<div class="d-shang-10 d-quxian-0">
							<span class="d-zitiyanse-hui">您的余额</span>
							
							<span class="d-zuo-10 d-wenzi-14 d-shang-10" style="color: #ff7171;"> <i class="fa fa-jpy"></i> {$member.money}</span>
							
						</div>
					{/if}
				{/if}
				
				{if $wdsj > 0}
					<div class="d-shang-10">
						<span class="d-zitiyanse-hui">支付状态</span>
						{if $wendayituoguan || $wendajifenzhifu}
						<span class="d-zuo-10 d-wenzi-14 d-shang-10" style="color: #ff7171;"> <i class="fa fa-check-circle"></i> 已托管</span>
						{else}
						<span class="d-zuo-10 d-wenzi-14 d-shang-10" style="color: #9d9999;"> <i class="fa fa-hourglass-start"></i> 待托管</span>
						{/if}
					</div>
				{/if}
				
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">结束时间</span>
					<span class="d-zuo-10">
						{$jssj}
					</span>
					
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">实名参与</span>
					<span class="d-zuo-10">
						{if $shimingcanyu == '1'}不需要
						{elseif $shimingcanyu == '1'}需要实名
						{/if}
					</span>
				</div>

				
				
				<div class="d-clear"></div>
			</div>
			{if !$shifouzhongbiao}
			<div class="col-md-6 ">
				<div class="d-kuan d-shang-20 d-kuan-160 d-beijing-fenhong d-yuanjiao-10 d-wenzi-juzhong d-zitiyanse-bai d-kuan-juzhong">
					{if strtotime($jssj) < time()}
						<a  class="d-hanggao-40" style="" >
							<i class="fa fa-comments-o"></i> 时间结束了
						</a>
					{else}
						
						{if $member}
						    {if $zdyh}
							    {member IN_id=$zdyh return=r}
									
									{if $r.id == $member.id}
									<a id="d-zhaopin-lianxi" class="d-hanggao-40" style="" onclick="javascript:d_daan_2();">
										<i class="fa fa-comments-o"></i> 我来解答
									</a>
									{/if}
								{/member}
							{else}
								<a id="d-zhaopin-lianxi" class="d-hanggao-40" style="" onclick="javascript:d_daan_2();">
									<i class="fa fa-comments-o"></i> 我来解答
								</a>
							{/if}
						{else}
						<a class="d-hanggao-40" style="" href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
							<i class="fa fa-whatsapp"></i> 登录后查看
						</a>
						{/if}
					{/if}
				</div>
				
			</div>
			{/if}
			{if $zdyh}
			<div class="col-md-12 d-shang-10">
				<span class="d-zitiyanse-hui d-kuan d-wenzi-juzhong d-shang-10">指定用户</span>
				<div class="d-claer"></div>
				
				{member IN_id=$zdyh return=r}
					{php $users =dr_member_info($r.id);}
				<div class="d-shang-10 col-md-4 ">
					
					<div class="d-bian-1 d-yuanjiao-10 d-wenzi-juzhong  d-kuan-juzhong d-quxian-0">
						
						<a id="d-zhaopin-lianxi" class="d-hanggao-40" style="" >
							<img src="{dr_avatar($r.id)}" width="30" height="30" class="d-yuanjiao-50 d-shang-8"/> {$users.username}
						</a>
					</div>
					
				</div>
				{/member}
				
				
			</div>
			{/if}
			<!--div class="col-md-6 ">
				<div class="d-kuan d-shang-20 d-kuan-160 d-beijing-fenhong d-yuanjiao-10 d-wenzi-juzhong d-zitiyanse-bai d-kuan-juzhong">
					{if $member}
					<a id="d-zhaopin-lianxi" class="d-hanggao-40" style="" onclick="javascript:d_zhaopin_lianxi();">
						<i class="fa fa-whatsapp"></i> 点击查看
					</a>
						{if $zhaopinbiao}
							<a id="d-zhaopin-lianxi-yc" class=" d-hanggao-40" style="" >
								<i class="fa fa-whatsapp"></i> 已聘到啦 
							</a>
						{else}
							<a id="d-zhaopin-lianxi-yc" class=" d-hanggao-40" style="" onclick="javascript:d_zhaopin_lianxi();">
								<i class="fa fa-whatsapp"></i>  {$zplx} <div>{$zpch} </div>
							</a>
							
						{/if}
					{else}
					<a class="d-hanggao-40" style="" href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
						<i class="fa fa-whatsapp"></i> 登录后查看
					</a>
					{/if}
				</div>
				
			</div-->
			<div class="d-clear"></div>
			
		</div>
			<div class="d-clear"></div>
			
		<!---->
		{if $wdsj > 0}
		<div class="d-shang-15">
			<div class="d-yuanjiao-10-10-xia d-beijing-hongse-1">
				<div class="d-jindu-biaoti-hongse-1" >问答进度</div>
					<div class="d-jindu-kuang">
						<div class="d-jindu-neikuang">
							<div class="d-jindu-kuan100">
								<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
									<img src="{HOME_THEME_PATH}web/img/zu.png" class="d-beijing-baise">
								</div>
							</div>
				            <div class="d-jindu-ziti {if $zhaopinbiao}d-jiacu d-beijing-wenzi-hongse-1{/if}">
								提问中...
							</div>
							<div class="d-jindu-riqi ">
								{dr_date($_inputtime, 'Y-m-d')}
							</div>
						</div>
						{if $wdsj > 0}
						<div class="d-jindu-neikuang d-quxian-0">
							<div class="d-jindu-kuan100">
									<div class="d-jindu-jtiao-hongse d-jindu-right d-jindu-hongse-1 {if $wendayituoguan || $wendajifenzhifu}{else}d-jindu-guodu-hongse{/if}">
									</div>
									{if $wendayituoguan || $wendajifenzhifu}
										<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
											<img src="{HOME_THEME_PATH}web/img/zu.png" class="d-beijing-baise">
										</div>
									{else}
										<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
											<img src="{HOME_THEME_PATH}web/img/zushijian.png" class="d-beijing-baise">
										</div>
									{/if}
							</div>
							{if $wendayituoguan || $wendajifenzhifu}
							<a>
								<div class="d-jindu-ziti {if $zhaopinbiao}d-jiacu d-beijing-wenzi-hongse-1{/if}">
									已支付
								</div>
							</a>
							{else}
							<a href="{dr_url(MOD_DIR.'/buywenda/index', ['fid' => $ci->module['form']['son']['field']['wdsj']['id'],'id'=> $id])}">
							
								<div class="d-jindu-ziti {if $zhaopinbiao}d-jiacu d-beijing-wenzi-hongse-1{/if}">
									待支付
								</div>
							</a>
							
							{/if}
							{if $wendajifenzhifu}
							<div class="d-jindu-riqi">
								{dr_date($wendajifenzhifu['inputtime'], 'Y-m-d')}
							</div>
							{else}
							<div class="d-jindu-riqi">
								{dr_date($wendayituoguan['inputtime'], 'Y-m-d')}
							</div>
							{/if}
							
						</div>
						{/if}
				        <div class="d-jindu-neikuang d-quxian-0">
							<div class="d-jindu-kuan100">
									<div class="d-jindu-jtiao-hongse d-jindu-right  {if $wendayituoguan || $wendajifenzhifu}d-jindu-hongse-1 {if !$shifouzhongbiao}d-jindu-guodu-hongse{/if}{/if}">
									</div>
									{if $shifouzhongbiao}
										<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
											<img src="{HOME_THEME_PATH}web/img/zu.png" class="d-beijing-baise">
										</div>
									{else}
										<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
											<img src="{HOME_THEME_PATH}web/img/zushijian.png" class="d-beijing-baise">
										</div>
									{/if}
							</div>
							<a class="d-zhaopin-jindu">
								<div class="d-jindu-ziti {if $shifouzhongbiao}d-jiacu d-beijing-wenzi-hongse-1{/if}">
									已解答
								</div>
							</a>
							<div class="d-jindu-riqi">
								{dr_date($zhaopinbiao['inputtime'], 'Y-m-d')}
							</div>
						</div>
						
						
					</div>
				</div>
			
		</div>
		{else}
		<!---->
		<div class="d-shang-15">
			<div class="d-yuanjiao-10-10-xia d-beijing-hongse-1">
				<div class="d-jindu-biaoti-hongse-1" >问答进度</div>
					<div class="d-jindu-kuang">
						<div class="d-jindu-neikuang">
							<div class="d-jindu-kuan100">
								<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
									<img src="{HOME_THEME_PATH}web/img/zu.png" class="d-beijing-baise">
								</div>
							</div>
				            <div class="d-jindu-ziti {if $shifouzhongbiao}d-jiacu d-beijing-wenzi-hongse-1{/if}">
								提问中...
							</div>
							<div class="d-jindu-riqi ">
								{dr_date($_inputtime, 'Y-m-d')}
							</div>
						</div>
				        <div class="d-jindu-neikuang d-quxian-0">
							<div class="d-jindu-kuan100">
									<div class="d-jindu-jtiao-hongse d-jindu-right  d-jindu-hongse-1 {if !$shifouzhongbiao} d-jindu-guodu-hongse{/if}">
									</div>
									{if $shifouzhongbiao}
										<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
											<img src="{HOME_THEME_PATH}web/img/zu.png" class="d-beijing-baise">
										</div>
									{else}
										<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
											<img src="{HOME_THEME_PATH}web/img/zushijian.png" class="d-beijing-baise">
										</div>
									{/if}
							</div>
							<a id="d_bug_paiqi_{$id}" data-id="{$id}" data-quanid="{$index.id}" class="d-zhaopin-jindu">
								<div class="d-jindu-ziti {if $shifouzhongbiao}d-jiacu d-beijing-wenzi-hongse-1{/if}">
									已解答
								</div>
							</a>
							<div class="d-jindu-riqi">
								{dr_date($shifouzhongbiao['inputtime'], 'Y-m-d')}
							</div>
						</div>
						
						
					</div>
				</div>
			
		</div>
		<!---->
		{/if}
	</div>
	
	<div class="d-kuan d-shang-15">
		<div class="d-kuan d-shang-15 d-wenzi-18 d-xia-15 d-wenzi-juzhong d-jiacu">问答描述</div>
		
	</div>
	<div class="d-clear"></div>
	
</div>
<!--提交答案-->

<style>
.d-beijingyanse-hong {
	background-color: #fff6f6;
	border-radius: 10px !important;
}
.xia-20 {
	margin-bottom: 20px;
	
}
</style>


<script>
function d_daan_2() {
    dr_iframe("{dr_lang('提交答案')}", "{dr_member_url('quan/wenda/adddaan', ['cid'=>$index.id,'tid'=>$id])}", '100%', '100%');
}

</script>